package com.hxy.service;

import com.hxy.entity.Buser;
import com.hxy.mapper.BuserMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jobob
 * @since 2021-07-27
 */
@Service
public class BuserServiceImpl extends ServiceImpl<BuserMapper, Buser>  {
       @Resource
       BuserMapper buserMapper;
       public List<Buser> select(){
           return buserMapper.select();
       }
       public int add(Buser buser){
           return buserMapper.insert(buser);
       }
       public int updates(Buser buser){
           return buserMapper.updateById(buser);
       }
       public int delete(Integer id){
           return buserMapper.deleteById(id);
       }
}
